package com.dgshanger.sanhxiaofeisc.mvp.model

import com.dgshanger.sanhxiaofeisc.common.AppApi
import com.dgshanger.sanhxiaofeisc.mvp.contract.FeedbackContract
import com.xx.baseutilslibrary.network.rx.RxHelper
import com.xx.baseutilslibrary.network.rx.RxHttpObserver

/**
 * FeedbackModel
 * 沉迷学习不能自拔
 * Describe：
 * Created by 雷小星🍀 on 2018/4/28 14:08.
 */

class FeedbackModel : FeedbackContract.Model {

    override fun referFeedback(content: String, rxHttpObserver: RxHttpObserver<Any>) {
        AppApi.Api()
                .refer_feedback(content)
                .compose(RxHelper.io_main())
                .subscribe(rxHttpObserver)
    }
}
